using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class TaskRemindersExtend
{
		public static ResponseTaskRemindersDto ToResponseDto(this TaskReminders entity)
{			return new ResponseTaskRemindersDto
			{
				isTriggered = entity.TrIsTriggered,
				remindTime = entity.TrRemindTime,
				remindTimeStr =Tools.TimeToString(entity.TrRemindTime),
				reminderId = entity.TrReminderId,
				taskId = entity.TrTaskId,
			};
		}
	}
}
